<?php
	include 'db.php';
	 

?>

<!DOCTYPE HTML>
<html>
    <head>
    <meta charset=utf-8>
    <title>LEDLAMPS</title>
    <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
    <script src="js/modernizr-1.7.min.js"></script><!-- this is the javascript allowing html5 to run in older browsers -->
    
    <link rel="stylesheet" type="text/css" href="css/reset.css" media="screen" title="html5doctor.com Reset Stylesheet" />
    
    <link rel="stylesheet" href="css/default.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" media="screen" />
    
    <!-- in the CSS3 stylesheet you will find examples of some great new features CSS has to offer -->
    <link rel="stylesheet" type="text/css" href="css/css3.css" media="screen" />
    
    <!-- general stylesheet contains some default styles, you do not need this, but it helps you keep a uniform style -->
    <link rel="stylesheet" type="text/css" href="css/general.css" media="screen" />
    
    <!-- grid's will help you keep your website appealing to your users, view 52framework.com website for documentation -->
    <link rel="stylesheet" type="text/css" href="css/grid.css" media="screen" />
    </head>
<body>
	
	<div class="header-bg">
        <header>
            <div class="logo col_7 col">
                <h1 id="logo" class="left"><a href="index.html">LEDLAMPS</a></h1>            
            </div>
            <!-- nav col_9 --> 
        </header>
    </div>
	 
	<section class="row">
    <?php 
		if(isset($_GET['action'])){
			$action = $_GET['action'];
			if($action == 'logerror'){
			echo '<div class="alert loginerror col_4 box-align-center"><button type="button" class="close" data-dismiss="alert">×</button><strong>Login Failed! </strong>Your Username and Password does not match.</div>';
			}else if($action == 'outsuccess'){
			echo '<div class="alert alert-success loginerror col_4 box-align-center"><button type="button" class="close" data-dismiss="alert">×</button><strong>Log out successful! </strong>Have a great day.</div>';	
			}
		}
	?>
     <div class="rounded loginbox col_4 box_shadow box-align-center">
     	<form id="login-form" method="post" action="inc/ledlogin.inc.php">
          <fieldset>
            <legend>Administrator Log In</legend>
            <div class="loginElem">
                <label>Username</label>
                <input name="myuser" id="myuser" type="text" placeholder="Type your username here"></div>
             <div class="loginElem">
             <label>Password</label>
            <input name="mypass" id="mypass" type="password" placeholder="Type your password here"></div>
            <button type="submit" class="btn btn-primary">Submit</button>
            <button type="button" class="btn">Clear</button>
          </fieldset>
        </form>
     </div>
    	<div class="clear"></div>
    </section>
    <footer class="row">

		<div class="col_16 col">all rights reserved &copy; <a href="#">LEDLAMPS</a> | </div>

	</footer>
	 
    <script src="js/bootstrap.min.js"></script>
</body>
</html>